package top.infopub.mgr.sys.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.sys.dao.RolepurviewDao;
import top.infopub.mgr.sys.service.RolepurviewService;
import top.infopub.model.sys.Rolepurview;


@Service
public class RolepurviewServiceImpl extends GenericServiceImpl<Rolepurview, String> implements RolepurviewService {

    @Autowired
    private RolepurviewDao rolepurviewDao;

    @Override
    public GenericDao<Rolepurview, String> getDao() {
        return rolepurviewDao;
    }

    @Override
    public void batchDeleteByPurIds(String[] purIds) {
        rolepurviewDao.batchDeleteByPurIds(purIds);        
    }

    @Override
    public List<Rolepurview> selectPurviewByRoleAndMenu(String roleId, String clickMenuId) {
        return rolepurviewDao.selectPurviewByRoleAndMenu(roleId, clickMenuId);
    }

    @Override
    public void deleteByRoleIdAndClickMenu(String roleId, String clickMenuId) {
        rolepurviewDao.deleteByRoleIdAndClickMenu(roleId, clickMenuId);
    }

    @Override
    public List<String> selectMenuIdsByRoleId(String roleId) {
        return rolepurviewDao.selectMenuIdsByRoleId(roleId);
    }

}